package final_;

/**
 * @author wly
 * @create 2022-12-04 22:09
 */
public class FinalExercise01 {
    public static void main(String[] args) {
        Circle c1 = new Circle(10);
        System.out.println(c1.getArea());
    }
}

class Circle{
    private double radius;
    private final double PI;  // = 3.14;

    public Circle(double radius) {
        this.radius = radius;
    }

    public double getArea(){
        return PI * radius * radius;
    }
    {
        PI = 3.14;
    }
}